<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\file\FileInput;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use kartik\markdown\MarkdownEditor;
use kartik\markdown\Markdown;

/* @var $this yii\web\View */
/* @var $model common\models\Goods */
/* @var $form yii\widgets\ActiveForm */
?>
    <div class="goods-form">
<?php $form = ActiveForm::begin(); ?>

        <div class="FormPage01">
<?= $form->field($model, 'goods_name')->textInput(['maxlength' => true]) ?>

<?= $form->field($model, 'shop_price')->textInput(['maxlength' => true]) ?>

<?= $form->field($model, 'market_price')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'weight')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'is_new')->radioList(['否', '是']) ?>

        <?= $form->field($model, 'is_hot')->radioList(['否', '是']) ?>

        <?= $form->field($model, 'is_good')->radioList(['否', '是']) ?>

        <?= $form->field($model, 'is_promote')->radioList(['否', '是']) ?>

        <?= $form->field($model, 'is_delete')->radioList(['否', '是']) ?>

        <?= $form->field($model, 'is_single')->radioList(['否', '是']) ?>

        </div>
<!--        <div class="FormPage02" style="display: none">-->
<!--            </div>-->
        <div class="form-group">
            <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
        </div>

        <?php $form = ActiveForm::end(); ?>
    </div>
